package com.zjitc.controller.manage;/**
 * Create by IntelliJ IDEA
 *
 * @author: MaoYongQi
 * @date-Time: 2018/4/3 10:44
 * @description:
 */

import com.zjitc.common.ServerResponse;
import com.zjitc.model.Managecount;
import com.zjitc.service.ManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpSession;

/**
 * Create by IntelliJ IDEA
 * @author: MaoYongQi
 * @date-Time: 2018/4/3 10:44
 * @description:
 */
@Controller
@RequestMapping("/manage/statistic")
public class StatisticManageController {

    @Autowired
    private ManageService service;

    @RequestMapping("/base_count")
    @ResponseBody
    public ServerResponse<Managecount> basecount(HttpSession session){
        ServerResponse<Managecount> response = service.statistical(session);
        return response;
    }
}
